******************************
**** Descriptive analysis ****
******************************

* PopTrans 

svyset id [pweight=RDSII]

svy: tab hiv, percent obs
svy: tab sifilis, percent obs

svy: tab idade, percent obs
svy: tab escol, percent obs
svy: tab corcat4, percent obs
svy: tab empreg, percent obs
svy: tab rendacat, percent obs
svy: tab gbd, percent obs
svy: tab sexfor, percent obs
svy: tab disc_sau2, percent obs
svy: tab disc_fam2 , percent obs
svy: tab disc_viz2  , percent obs
svy: tab sard_indicador, percent obs

* DIVAS

svyset id [pweight=peso_RDSII]

svy: tab HIVSSA, percent obs
svy: tab SifilisSSA, percent obs

svy: tab idade, percent obs
svy: tab Escola2, percent obs
svy: tab corcat, percent obs
svy: tab ocupacao, percent obs
svy: tab renda, percent obs
svy: tab gbd, percent obs
svy: tab SexoForcado, percent obs
svy: tab disc_saude, percent obs
svy: tab disc_familia , percent obs
svy: tab disc_visinho  , percent obs
svy: tab sard_indicador, percent obs

******************************
**** Exploratory analysis ****
******************************

* PopTrans 

svyset id [pweight=RDSII]

svy: tab sifilis hiv, row percent obs

svy: tab idade hiv, row percent obs
svy: tab escol hiv, row percent obs
svy: tab corcat4 hiv, row percent obs
svy: tab empreg hiv, row percent obs
svy: tab rendacat hiv, row percent obs
svy: tab gbd hiv, row percent obs
svy: tab sexfor hiv, row percent obs
svy: tab disc_sau2 hiv, row percent obs
svy: tab disc_fam2 hiv, row percent obs
svy: tab disc_viz2 hiv, row percent obs
svy: tab sard_indicador hiv, row percent obs

svy: logistic hiv i.disc_fam2 i.disc_viz2 i.sifilis
svylogitgof

* DIVAS

svyset id [pweight=peso_RDSII]

svy: tab SifilisSSA HIVSSA, row percent obs

svy: tab idade HIVSSA, row percent obs
svy: tab Escola2 HIVSSA, row percent obs
svy: tab corcat HIVSSA, row percent obs
svy: tab ocupacao HIVSSA, row percent obs
svy: tab renda HIVSSA, row percent obs
svy: tab gbd HIVSSA, row percent obs
svy: tab SexoForcado HIVSSA, row percent obs
svy: tab disc_saude HIVSSA, row percent obs
svy: tab disc_familia  HIVSSA, row percent obs
svy: tab disc_visinho   HIVSSA, row percent obs
svy: tab sard_indicador HIVSSA, row percent obs

svy: logistic HIVSSA i.SexoForcado i.SifilisSSA
svylogitgof

